    <!DOCTYPE html>
    <html>
    <head>
      <meta charset="UTF-8">
      <title>动态更新数据</title>
      <script src="{{ url_for('static', filename='jquery.min.js') }}"></script>
      <script src="{{ url_for('static', filename='echarts.min.js') }}"></script>
    </head>
    <body>
      <div id="bar" style="width:1000px; height:600px;"></div>
      <script>
       (
        function () {
          var result_json = '{{ result_json|tojson }}';
          // var result = JSON.parse(result_json);
          var chart = echarts.init(document.getElementById('bar'), 'gray', {renderer: 'canvas'});
          $.ajax({
            type: "GET",
            url: "http://10.10.10.9:5000/barChart",
            dataType: 'json',
            data: {result: result_json},
            success: function (result) {
              chart.setOption(result);
            }
          });
        }
      )
      </script>
    </body>
    </html>